package com.mall.common;

/**
 * 常量
 * @author is_zhoufeng
 */
public interface Consts {
	
	/**
	 * 购买商品订单状态
	 * @author zhoufeng
	 *
	 */
	public static interface tradeOrderStatus{
		/**
		 * 未支付
		 */
		public static final int STATUS_NOTPAY = 0 ;
		
		/**
		 * 支付成功
		 */
		public static final int STATUS_PAYSUCCESS = 1 ;//支付成功，卖家未发货状态
		
		/**
		 * 支付失败
		 */
		public static final int STATUS_PAYFAILED = 4 ;
		
	}
	
	/**
	 * 购买对象
	 * @author lihaiyang
	 *
	 */
	public static interface tradeOrderType{
		/**
		 * 正常购买
		 */
		public static final int TYPE_QIYE = 0 ;
		/**
		 * 优惠买单
		 */
		public static final int TYPE_YOUHUI = 4 ;
		/**
		 * 团购
		 */
		
		public static final int TYPE_MALLGROUPBUY = 5 ;
		/**
		 * 智慧餐厅
		 */
		public static final int TYPE_ZHIHUI = 7 ;
		
		/**
		 * 民宿
		 */
		public static final int TYPE_MINSU = 9 ;
		/**
		 * 微商
		 */
		public static final int WEISHANG = 12 ;
	}
	
	/**
	 * 购买订单来源
	 * @author zhoufeng
	 *
	 */
	public static interface RechargeOrderSource{
		
		/**
		 * 人命币付款
		 */
		public static final int SOURCE_RMB = 1 ;
		
	}
	
	/**
	 * 支付类型
	 * @author zhoufeng
	 *
	 */
	public static interface PayType{
		
		/**
		 * 微信支付
		 */
		public static final int WEIXIN = 1; 
		
		/**
		 * 支付宝支付
		 */
		public static final int ALIPAY = 2 ;
		
	}
	/**
	 * 加密
	 * @author haiyang
	 *
	 */

	public static interface PassJiaMi{
		/**
		 * md5加盐
		 */
		
		public static final String MD5JIAYAN = "yanjiaduolehuixian";
	}
	
	public static interface PsTaskStatus{
		/**
		 * 新任务
		 */
		public static final int STATUS_NEW = 0 ;
		
		/**
		 * 接受任务
		 */
		public static final int STATUS_RECEIVE = 1 ;
		/**
		 * 安装中
		 */
		public static final int STATUS_INSTALLING = 2 ;
		
		/**
		 * 安装完成
		 */
		public static final int STATUS_FINISH = 4;
		
		
		/**
		 * 无法安装退款
		 */
		public static final int STATUS_REFUND = -1;
		
	}
}
